package com.java2_5;

//javabean;

public class javabeanStu {
    private String name; //不同的class里面不能使用
    private int age;
    private int index;
    private char sex;

    public javabeanStu(){
        //无参数的构造器;
    }
    public javabeanStu(String name, int age, int index, char sex) {
        this.name = name;
        this.age = age;
        this.index = index;
        this.sex = sex;
    }

    public String getName(){
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }
}
